package com.wanmait.wanmarecruit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
* Created by Mybatis Generator 2022/09/22
*/
@Data
@TableName(value = "job_orientation")
public class JobOrientation implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 二级分类id（期望职位）
     */
    @TableField(value = "position_type_second_id")
    private Integer positionTypeSecondId;
    @TableField(exist = false)
    private PositionTypeSecond positionTypeSecond;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;
    @TableField(exist = false)
    private User user;

    @TableField(value = "enable")
    private Boolean enable;

    /**
     * 期望城市id
     */
    @TableField(value = "excepted_city_id")
    private Integer exceptedCityId;
    @TableField(exist = false)
    private City city;

    /**
     * 期望薪资id
     */
    @TableField(value = "excepted_salary_id")
    private Integer exceptedSalaryId;
    @TableField(exist = false)
    private Salary salary;

    /**
     * 一级分类id（期望行业）
     */
    @TableField(value = "position_type_id")
    private Integer positionTypeId;
    @TableField(exist = false)
    private PositionType positionType;

    /**
     * 0为兼职，1为全职
     */
    @TableField(value = "work_nature")
    private Boolean workNature;

    private static final long serialVersionUID = 1L;

    public static final String COL_POSITION_TYPE_SECOND_ID = "position_type_second_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_ENABLE = "enable";

    public static final String COL_EXCEPTED_CITY_ID = "excepted_city_id";

    public static final String COL_EXCEPTED_SALARY_ID = "excepted_salary_id";

    public static final String COL_POSITION_TYPE_ID = "position_type_id";

    public static final String COL_WORK_NATURE = "work_nature";
}